getDisplay

@Nullable
open fun getDisplay(@NonNull view: @NonNull View): @Nullable Display(source)

Deprecated

Call getDisplay directly.

Gets the logical display to which the view's window has been attached.

Compatibility:

  • API <17: Returns the default display when the view is attached. Otherwise, null.

Return

The logical display, or null if the view is not currently attached to a window.